import Vue from 'vue';

import Cookies from 'js-cookie';
import 'normalize.css/normalize.css'; // a modern alternative to CSS resets

import Element from 'element-ui';
import 'ecenter-ui/src/styles/element-variables.scss';

import 'ecenter-ui/src/styles/index.scss'; // global css
import 'ecenter-ui/src/styles/ecenter.scss'; // global css

import App from './App';
import store from './store';
import router from './router';
import ecenter from 'ecenter-ui';
import bus from '@/store/bus';
import VueQuillEditor from 'vue-quill-editor';
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
import 'leaflet/dist/leaflet.css';
// 引入Leaflet对象 挂载到Vue上，便于全局使用，也可以单独页面中单独引用
import * as L from 'leaflet';
import 'leaflet.pm';
import 'leaflet.pm/dist/leaflet.pm.css';
import '@supermap/iclient-leaflet';
Vue.use(VueQuillEditor);
Vue.use(ecenter);
Vue.use(bus);
Vue.L = Vue.prototype.$L = L;
ecenter.auth.sso.checkStatus();
Vue.use(Element, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
  // locale: enLang // 如果使用中文，无需设置，请删除
});
Vue.config.productionTip = false;
new Vue({
  el: '#app',
  router,
  store,
  data() {
    return {
      proId: ''
    };
  },
  render: h => h(App)
});
